package com.eduadmin.entity;

public class Page {
    private Integer page;     //当前第几页
    private Integer rows;     //每页显示记录数

    public Page(Integer page, Integer rows) {
        this.page = page;
        this.rows = rows;
    }

    public Integer getPage() {
        return this.page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getRows() {
        return this.rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    //第几条记录起始
    public int getOffset() {
        return (this.page - 1) * this.rows;
    }

}
